package com.xiu.travel.portal.client;

import com.xiu.travel.portal.OpenFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

@Component
@FeignClient(name = "search", url = OpenFeignConfig.TEST_API_URL)
public interface SearchClient {


    /**
     * 获取用户信息
     */
    @PostMapping("distribution/api/search/flight/list?access_token={token}")
    String flightList(@RequestBody Object dto, @PathVariable("token") String token);

    @PostMapping("distribution/api/search/flight/detail?access_token={token}")
    String flightDetail(@RequestBody Object dto, @PathVariable("token") String token);

    @PostMapping("distribution/api/order/per/cabin/confirm?access_token={token}")
    String cabinConfirm(@RequestBody Object dto, @PathVariable("token") String token);

}
